﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ThaireInvestmentWeb.WcfSerivce;

namespace ThaireInvestmentWeb.Models
{
    public class FixedIncomeModel
    {

        public FixedIncomeModel()
        {
            if (null == Data)
                Data = new FixIncomeSecuritiesDTO();
            //test
            //Data.IsinCode = " XXX CODE";

            CompanyList = new BindingList<SelectListItem>();
            //TODO: add companies from db here
            CompanyList.Add(item: new SelectListItem() { Selected = true, Text = "--Select data--", Value = "" });
            CompanyList.Add(item: new SelectListItem() { Selected = false, Text = "Thaire Life", Value = "1" });
            CompanyList.Add(item: new SelectListItem() { Selected = false, Text = "Thaire Training", Value = "2" });
            CompanyList.Add(item: new SelectListItem() { Selected = false, Text = "Thaire Service", Value = "3" });

            SelectedCompanyId = "";
        }
        public FixIncomeSecuritiesDTO Data { get; set; }
        public string SelectedCompanyId { get; set; }
        public IList<SelectListItem> CompanyList { get; set; }
        public string SelectedIssuer { get; set; }
        public IList<SelectListItem> IssuerList { get; set; }
        public string SelectedIssuerType { get; set; }
        public IList<SelectListItem> IssuerTypeList { get; set; }
        public string SelectedGuarantorType { get; set; }
        public IList<SelectListItem> GuarantorTypeList { get; set; }
        public string SelectedBondType { get; set; }
        public IList<SelectListItem> BondTypeList { get; set; }
        public string SelectedListedStatus { get; set; }
        public IList<SelectListItem> ListedStatusList { get; set; }
        public string SelectedRedempton { get; set; }
        public IList<SelectListItem> RedemptonList { get; set; }
        public string SelectedCalculationMethod { get; set; }
        public IList<SelectListItem> CalculationMethodList { get; set; }
        public string SelectedIssueRating { get; set; }
        public IList<SelectListItem> IssueRatingList { get; set; }
        public string SelectedCreditAgencyIssue { get; set; }
        public IList<SelectListItem> CreditAgencyIssueList { get; set; }
        public string SelectedIssuerRating{ get; set; }
        public IList<SelectListItem> IssuerRatingList { get; set; }
        public string SelectedCreditAgencyIssuer { get; set; }
        public IList<SelectListItem> CreditAgencyIssuerList { get; set; }
        public string SelectedGuarantorRating { get; set; }
        public IList<SelectListItem> GuarantorRatingList { get; set; }
        public string SelectedCreditAgencyGuarantor { get; set; }
        public IList<SelectListItem> CreditAgencyGuarantorList { get; set; }
        public string SelectedInvolvedPartyTypeName { get; set; }
        public IList<SelectListItem> InvolvedPartyTypeNameList { get; set; }

    }
}